/*************************************************************************
> File Name: stack.cpp
> Author: hzy
> Created Time: 2023-08-19 17:10:53
> Description:
************************************************************************/
#include <iostream>
#include <stack>

using namespace std;

int main()
{
    stack<int> sk;
    stack<int> sk1;

    for (int i = 1; i <= 10; i++)
    {
        sk.push(i);
    }

    sk1 = sk;

    for (int i = sk1.size(); i > 0; i--)
    {
        cout << sk1.top() << " ";
        sk1.pop();
    }
    cout << endl;

    return 0;
}